#ifndef MYWIDGET_H
#define MYWIDGET_H

#include <QtWidgets/QtWidgets>
#include <QWidget>
#include <QPainter>
#include <QDebug>

class MyWidget : public QWidget {
Q_OBJECT
public:
    MyWidget();

    void paintEvent(QPaintEvent *event) override {
        QPainter painter(this);
        QPixmap pixmap(":/prefix/image/尸体.png");
        qDebug() << pixmap;
        painter.drawPixmap(0, 0, pixmap);
        QWidget::paintEvent(event);
    }
};

#endif // MYWIDGET_H
